<div id="agorawrap">
		
	<div id="brdtitle" class="inbox">
     <h1><span><?php echo $yarbb_config['o_board_title']; ?></span></h1>
	</div>

	<div id="agora" class="agora pun">
	<?php
	if($_GET['task'] != 'attach') { ?>
		<div id="brdheader" class="block">
			<div class="box">
				<?php echo $tpl['yarbb_navlinks']; ?>
					<div id="brdwelcome" class="inbox">
						<?php echo $tpl['yarbb_status']; ?>
						<?php if ($yarbb_user['is_guest']) {
							mosLoadModules('agora_1', -1 ); 
							} else {
							mosLoadModules('agora_2', -1 ); 
							} ?>
							</div><div class="clearer"></div>
			</div>
		</div>
		<?php } ?>
		
		<?php echo $tpl['yarbb_announcement']; ?>
		<?php echo $tpl['yarbb_body']; ?>
		
		<?php
		if($_GET['task'] != 'attach') { ?>
		
		<div id="brdfooter" class="block">
			<div class="box">
				<div class="inbox"><?php echo $stats['on_line']?></div>
			</div>
		</div>

		<div id="most_active" class="block">
			<h2><span class="brdcolor2"><?php if ($yarbb_config['o_top_ten'] == 1) echo _Y_YARMOSTACTIV; ?></span></h2>
			<div class="box">
				<div class="inbox"><?php echo $stats['super_users']; ?></div>
			</div>
		</div>

		<div id="brdstats" class="block">
			<h2><span class="brdcolor2"><?php echo _E_ITEM_INFO; ?></span></h2>
			<div class="box">
				<div class="inbox">
					<table width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td>
								<div class="conl">
									<strong><?php echo _Y_STATICTICS; ?></strong> <?php echo _Y_YARTOTALTOP.': <strong>'.$stats['total_topics'] ?></strong>
									<?php echo _Y_YARTOTALPOL.': <strong>'.$stats['total_polls'] ?></strong> <?php echo _Y_YARTOTALPOS.': <strong>'.$stats['total_posts'] ?></strong>
									<?php echo $stats['posts_stats']?>
								</div>
							</td>
						</tr>
						<tr>
							<td>
								<div class="conl"><strong><?php echo _Y_YAROUSER; ?></strong>
									<?php echo _Y_YARLATESTUSR; ?>: <a href="<?php echo sefRelToAbs('index.php?option=com_users&task=profile&amp;user='.$stats['last_user']['id']); ?>"><?php echo yarbb_htmlspecialchars($stats['last_user']['username']) ?></a>
								</div>
							</td>
						</tr>
						<tr>
							<td>
								<?php if (mosCountModules( 'forum_bottom' )) { ?>
								<div id="forum_bottom"><?php mosLoadModules('forum_bottom', -3 ); ?></div>
									<?php }?>
							</td>
						</tr>
					</table>
				</div>
			</div>
			<?php if (mosCountModules( 'forum_footer' )) { ?>
			<div id="forum_bottom"><?php mosLoadModules('forum_footer', -3 ); ?></div>
				<?php }?>
		</div>
		<?php }?>
		<div class="clearer"></div>
	</div>
</div>